package com.example.springboard.controller;


import com.example.springboard.entity.ResponseMessage;
import com.example.springboard.entity.dto.UserDto;
import org.springframework.http.HttpStatus;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class User {

    @PostMapping
    public ResponseMessage add(@Validated @RequestBody UserDto user){
        return new ResponseMessage(HttpStatus.OK.value(),"success",user);
    }
}
